INSTALL_PATH=~/.ding-cli
BUILD_PATH="../dist"

build: 
	rm -r -f $(BUILD_PATH)
	mkdir -p $(BUILD_PATH)
	go build -ldflags '-w -s' -o $(BUILD_PATH)/ding-cli
	cp -r ./static $(BUILD_PATH)/static

install:
	rm -r -f $(INSTALL_PATH)
	mkdir -p $(INSTALL_PATH)
	cp -r -f $(BUILD_PATH)/* $(INSTALL_PATH)
	cp -r -f static $(INSTALL_PATH)